package com.example.permission.entity;

import lombok.Data;

import javax.management.relation.Role;
import java.util.Date;
import java.util.List;

@Data
public class User {
    private Long id;
    private Date createTime;
    private String createUser;
    private Integer status;
    private Date updateTime;
    private String updateUser;
    private Integer version;
    private String address;
    private String email;
    private String loginname;  // 对应数据库LOGINNAME字段
    private String mobilephone;
    private String name;
    private String password;
    private Integer sex;
    private String tel;

    // 关联角色列表（一对多）
    private List<Role> roles;
}